package com.ruoyi.common.gen.service;

import com.ruoyi.common.gen.entity.${entity};
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletResponse;
import java.util.List;


/**
 * 描述：${table.comment} 服务类
 * @author ${author}
 * @date ${date}
 */
public interface ${table.serviceName} extends ${superServiceClass}<${entity}> {

    /**
     * 描述：分页查询
     * @author ${author}
     * @date ${date}
     */
    IPage<${entity}> pageList(${entity} ${table.entityPath});
    
    /**
     * 描述：详情
     * @author ${author}
     * @date ${date}
     */
    ${entity} detail${entity}(Long id);    

    /**
     * 描述：保存
     * @author ${author}
     * @date ${date}
     */
    void save${entity}(${entity} ${table.entityPath});

    /**
     * 描述：修改
     * @author ${author}
     * @date ${date}
     */
    void update${entity}(${entity} ${table.entityPath});

    /**
     * 描述：删除
     * @author ${author}
     * @date ${date}
     */
    void delete${entity}(List<Long> ids);

    /**
     * 描述：批量导出
     * @author ${author}
     * @date ${date}
     */
    void exportExcel(HttpServletResponse response, ${entity} ${table.entityPath});

}